package com.watercube.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.watercube.dao.entity.Client;
import com.watercube.dao.mapper.ClientMapper;

@RequestMapping(value = "/test")
@RestController
public class TestController {
	@Autowired
	private ClientMapper clientMapper;

	@ResponseBody
	@RequestMapping(value = "/get", method = RequestMethod.GET)
	public Client selectByPrimaryKeyTest() {
		Client selectByPrimaryKey = clientMapper.selectByPrimaryKey("00");
		return selectByPrimaryKey;
	}

}
